﻿#pragma once

#include <QDialog>
#include "ui_ConfigDialog.h"

QT_BEGIN_NAMESPACE
namespace Ui { class ConfigDialogClass; };
QT_END_NAMESPACE

class ConfigDialog : public QDialog
{
	Q_OBJECT

public:
	ConfigDialog(QWidget *parent = nullptr);
	~ConfigDialog();

	//初始化数据
	void initData();

signals:
	void pciParamChanged();
	void hardwareParamChanged();

private slots:
	//pci
	void on_pushButton_config_clicked();
	//hardware
	void on_pushButton_config_2_clicked();

	void on_toolButton_clicked();
private:
	//采集卡参数
	void savePCIParam();
	void loadPCIParam();

	//硬件参数
	void saveHardwareParam();
	void loadHardwareParam();

	Ui::ConfigDialogClass *ui;
};
